package designMode.builder;

/**
 * Created by 小星打屁屁 on 2015/3/26.
 * contact me ==>243709758@qq.com
 * 指导类，用于创建product并组装
 * 构造一个使用Builder接口的对象。
 */
public class PersonDirector {
    public  Person createPerson(IPersonBuilder iPersonBuilder){
        iPersonBuilder.buildHead();
        iPersonBuilder.buildBody();
        iPersonBuilder.buildFoot();
        return  iPersonBuilder.buildPerson();
    }
}
